//
//  TNNotificationCell.m
//  跑跑快销
//
//  Created by ylife on 14-5-4.
//  Copyright (c) 2014年 ylife. All rights reserved.
//

#import "TNNotificationCell.h"

@implementation TNNotificationCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        [self createCell];
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)createCell
{
    _kindLable = [[UILabel alloc]initWithFrame:CGRectMake(20, 0, 120, 40)];
    [_kindLable setTextAlignment:NSTextAlignmentLeft];
    [self addSubview:_kindLable];
    
    _dateLable = [[UILabel alloc]initWithFrame:CGRectMake(220, 0, 100, 40)];
    [_dateLable setTextAlignment:NSTextAlignmentLeft];
    [_dateLable setTextColor:[UIColor grayColor]];
    [self addSubview:_dateLable];
    
    _contentLable = [[UILabel alloc]initWithFrame:CGRectMake(20, 40, 280, 50)];
    [_contentLable setTextAlignment:NSTextAlignmentLeft];
    [_contentLable setTextColor:[UIColor darkGrayColor]];
    [self addSubview:_contentLable];
    
    //画虚线
    UILabel *lable = [[UILabel alloc]initWithFrame:CGRectMake(20, 40, 300, 1)];
    [lable setTextColor:[UIColor grayColor]];
    [lable setFont:[UIFont systemFontOfSize:7]];   //默认17
    lable.text = @"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ";
    [self addSubview:lable];
}

@end
